/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VOL.Entity.SystemModels;

namespace VOL.Entity.DomainModels
{
    [Entity(TableCnName = "Bus_合同主表",TableName = "Bus_合同主表",DetailTable =  new Type[] { typeof(Bus_合同明细)},DetailTableCnName = "Bus_合同明细")]
    public partial class Bus_合同主表:BaseEntity
    {
        /// <summary>
       ///
       /// </summary>
       [Key]
       [Display(Name ="guid")]
       [Column(TypeName="uniqueidentifier")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public Guid guid { get; set; }

       /// <summary>
       ///合同编号
       /// </summary>
       [Display(Name ="合同编号")]
       [MaxLength(100)]
       [Column(TypeName="nvarchar(100)")]
       [Editable(true)]
       public string 合同编号 { get; set; }

       /// <summary>
       ///合同名称
       /// </summary>
       [Display(Name ="合同名称")]
       [MaxLength(100)]
       [Column(TypeName="nvarchar(100)")]
       [Editable(true)]
       public string 合同名称 { get; set; }

       /// <summary>
       ///合同类别
       /// </summary>
       [Display(Name ="合同类别")]
       [MaxLength(100)]
       [Column(TypeName="nvarchar(100)")]
       [Editable(true)]
       public string 合同类型 { get; set; }

       /// <summary>
       ///合同甲方编号
       /// </summary>
       [Display(Name ="合同甲方编号")]
       [MaxLength(100)]
       [Column(TypeName="nvarchar(100)")]
       [Editable(true)]
       public string 合同甲方编号 { get; set; }

       /// <summary>
       ///合同甲方名称
       /// </summary>
       [Display(Name ="合同甲方名称")]
       [MaxLength(100)]
       [Column(TypeName="nvarchar(100)")]
       [Editable(true)]
       public string 合同甲方名称 { get; set; }

       /// <summary>
       ///合同乙方编号
       /// </summary>
       [Display(Name ="合同乙方编号")]
       [MaxLength(100)]
       [Column(TypeName="nvarchar(100)")]
       [Editable(true)]
       public string 合同乙方编号 { get; set; }

       /// <summary>
       ///合同乙方名称
       /// </summary>
       [Display(Name ="合同乙方名称")]
       [MaxLength(100)]
       [Column(TypeName="nvarchar(100)")]
       [Editable(true)]
       public string 合同乙方名称 { get; set; }

       /// <summary>
       ///合同计划金额
       /// </summary>
       [Display(Name ="合同计划金额")]
       [DisplayFormat(DataFormatString="18,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? 合同金额 { get; set; }

       /// <summary>
       ///合同建立人
       /// </summary>
       [Display(Name ="合同建立人")]
       [MaxLength(100)]
       [Column(TypeName="nvarchar(100)")]
       [Editable(true)]
       public string 签订人 { get; set; }

       /// <summary>
       ///中标日期
       /// </summary>
       [Display(Name ="中标日期")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? 中标日期 { get; set; }

       /// <summary>
       ///签订日期
       /// </summary>
       [Display(Name ="签订日期")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? 签订日期 { get; set; }

       /// <summary>
       ///计划开始工期
       /// </summary>
       [Display(Name ="计划开始工期")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? 工期开始 { get; set; }

       /// <summary>
       ///计划结束工期
       /// </summary>
       [Display(Name ="计划结束工期")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? 工期结束 { get; set; }

       /// <summary>
       ///计划工期
       /// </summary>
       [Display(Name ="计划工期")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? 合同工期 { get; set; }

       /// <summary>
       ///甲方项目经理
       /// </summary>
       [Display(Name ="甲方项目经理")]
       [MaxLength(100)]
       [Column(TypeName="nvarchar(100)")]
       [Editable(true)]
       public string 甲方项目经理 { get; set; }

       /// <summary>
       ///乙方项目经理
       /// </summary>
       [Display(Name ="乙方项目经理")]
       [MaxLength(100)]
       [Column(TypeName="nvarchar(100)")]
       [Editable(true)]
       public string 乙方项目经理 { get; set; }

       /// <summary>
       ///项目名称
       /// </summary>
       [Display(Name ="项目名称")]
       [MaxLength(100)]
       [Column(TypeName="nvarchar(100)")]
       [Editable(true)]
       public string 项目名称 { get; set; }

       /// <summary>
       ///项目分类
       /// </summary>
       [Display(Name ="项目分类")]
       [MaxLength(100)]
       [Column(TypeName="nvarchar(100)")]
       [Editable(true)]
       public string 项目类型 { get; set; }

       /// <summary>
       ///合同状态
       /// </summary>
       [Display(Name ="合同状态")]
       [MaxLength(100)]
       [Column(TypeName="nvarchar(100)")]
       [Editable(true)]
       public string 合同状态 { get; set; }

       /// <summary>
       ///合同摘要
       /// </summary>
       [Display(Name ="合同摘要")]
       [MaxLength(1000)]
       [Column(TypeName="nvarchar(1000)")]
       [Editable(true)]
       public string 合同摘要 { get; set; }

       /// <summary>
       ///付款方式
       /// </summary>
       [Display(Name ="付款方式")]
       [MaxLength(1000)]
       [Column(TypeName="nvarchar(1000)")]
       [Editable(true)]
       public string 付款方式 { get; set; }

       /// <summary>
       ///验收标准
       /// </summary>
       [Display(Name ="验收标准")]
       [MaxLength(1000)]
       [Column(TypeName="nvarchar(1000)")]
       [Editable(true)]
       public string 验收标准 { get; set; }

       /// <summary>
       ///合同备注
       /// </summary>
       [Display(Name ="合同备注")]
       [MaxLength(1000)]
       [Column(TypeName="nvarchar(1000)")]
       [Editable(true)]
       public string 合同备注 { get; set; }

       /// <summary>
       ///合同份数
       /// </summary>
       [Display(Name ="合同份数")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? 合同份数 { get; set; }

       /// <summary>
       ///产值累计
       /// </summary>
       [Display(Name ="产值累计")]
       [DisplayFormat(DataFormatString="18,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? 产值累计 { get; set; }

       /// <summary>
       ///审定价
       /// </summary>
       [Display(Name ="审定价")]
       [DisplayFormat(DataFormatString="18,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? 审定金额 { get; set; }

       /// <summary>
       ///履约保证金
       /// </summary>
       [Display(Name ="履约保证金")]
       [DisplayFormat(DataFormatString="18,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? 履约保证金 { get; set; }

       /// <summary>
       ///验收日期
       /// </summary>
       [Display(Name ="验收日期")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? 验收日期 { get; set; }

       /// <summary>
       ///开票收入
       /// </summary>
       [Display(Name ="开票收入")]
       [DisplayFormat(DataFormatString="18,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? 审计日期 { get; set; }

       /// <summary>
       ///已收
       /// </summary>
       [Display(Name ="已收")]
       [DisplayFormat(DataFormatString="18,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? 开票含税收入 { get; set; }

       /// <summary>
       ///未收
       /// </summary>
       [Display(Name ="未收")]
       [DisplayFormat(DataFormatString="18,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? 累计已收款 { get; set; }

       /// <summary>
       ///未开票
       /// </summary>
       [Display(Name ="未开票")]
       [DisplayFormat(DataFormatString="18,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? 未开含税 { get; set; }

       /// <summary>
       ///开票进度%
       /// </summary>
       [Display(Name ="开票进度%")]
       [DisplayFormat(DataFormatString="18,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? 开票比例 { get; set; }

       /// <summary>
       ///收款进度%
       /// </summary>
       [Display(Name ="收款进度%")]
       [DisplayFormat(DataFormatString="18,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? 收款比例 { get; set; }

       /// <summary>
       ///创建时间
       /// </summary>
       [Display(Name ="创建时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? CreateDate { get; set; }

       /// <summary>
       ///创建用户ID
       /// </summary>
       [Display(Name ="创建用户ID")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? CreateID { get; set; }

       /// <summary>
       ///创建人
       /// </summary>
       [Display(Name ="创建人")]
       [MaxLength(30)]
       [Column(TypeName="nvarchar(30)")]
       [Editable(true)]
       public string Creator { get; set; }

       /// <summary>
       ///修改时间
       /// </summary>
       [Display(Name ="修改时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? ModifyDate { get; set; }

       /// <summary>
       ///修改人ID
       /// </summary>
       [Display(Name ="修改人ID")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? ModifyID { get; set; }

       /// <summary>
       ///修改人
       /// </summary>
       [Display(Name ="修改人")]
       [MaxLength(30)]
       [Column(TypeName="nvarchar(30)")]
       [Editable(true)]
       public string Modifier { get; set; }

       /// <summary>
       ///合同种类
       /// </summary>
       [Display(Name ="合同种类")]
       [MaxLength(100)]
       [Column(TypeName="nvarchar(100)")]
       [Editable(true)]
       public string 合同种类 { get; set; }

       [Display(Name ="Bus_合同明细")]
       [ForeignKey("guid")]
       public List<Bus_合同明细> Bus_合同明细 { get; set; }

    }
}